import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
import _applyDecoratedDescriptor from "@babel/runtime/helpers/esm/applyDecoratedDescriptor";
import _isEmpty from "lodash/isEmpty";

var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class, _class2;

/**
 * 分配安全组 - 侧滑
 * @date: 2019-11-15

 */
import React from 'react';
import { Modal, Table, Form, Row, Col, Button, Tabs } from 'antd';
import { Bind } from 'lodash-decorators';
import intl from 'utils/intl';
import notification from 'utils/notification';
import { SEARCH_FORM_ROW_LAYOUT } from 'utils/constants';
import SearchForm from "./SearchForm";
import AddDataModal from "./AddSecGrpModal";
import VisitPermissionTab from "./Permissions/VisitPermissionTab";
import FieldPermissionTab from "./Permissions/FieldPermissionTab";
import CardTab from "./Permissions/CardTab";
import DimensionTab from "./Permissions/DimensionTab";
import DataPermissionTab from "./Permissions/DataPermissionTab";
import styles from "./index.less?modules";
var TabPane = Tabs.TabPane;

function getRefFieldsValue(ref) {
  if (ref.current) {
    return ref.current.props.form.getFieldsValue();
  }

  return {};
}

var AssignSecGrp = (_dec = Form.create({
  fieldNameProp: null
}), _dec2 = Bind(), _dec3 = Bind(), _dec4 = Bind(), _dec5 = Bind(), _dec6 = Bind(), _dec7 = Bind(), _dec8 = Bind(), _dec9 = Bind(), _dec10 = Bind(), _dec11 = Bind(), _dec12 = Bind(), _dec13 = Bind(), _dec14 = Bind(), _dec15 = Bind(), _dec16 = Bind(), _dec17 = Bind(), _dec18 = Bind(), _dec19 = Bind(), _dec20 = Bind(), _dec21 = Bind(), _dec22 = Bind(), _dec(_class = (_class2 = /*#__PURE__*/function (_React$Component) {
  _inherits(AssignSecGrp, _React$Component);

  var _super = _createSuper(AssignSecGrp);

  function AssignSecGrp(props) {
    var _this;

    _classCallCheck(this, AssignSecGrp);

    _this = _super.call(this, props);
    _this.oneSearchFormRef = React.createRef();
    _this.state = _this.getInitialState();
    return _this;
  }

  _createClass(AssignSecGrp, [{
    key: "getInitialState",
    value: function getInitialState() {
      return {
        selectedRowKeys: [],
        // 选中行key集合
        selectedRows: {},
        // 选中行集合
        addModalVisible: false,
        currentSecGrp: {},
        // 点击的安全组
        activeKey: 'visit',
        // 选中的tab
        visitPermissionList: [],
        defaultExpandedRowKeys: []
      };
    }
    /**
     * 查询
     */

  }, {
    key: "handleSearch",
    value: function handleSearch() {
      var onFormSearch = this.props.onFormSearch;
      var fieldsValue = getRefFieldsValue(this.oneSearchFormRef);
      onFormSearch(fieldsValue);
    }
    /**
     * 安全组分页切换
     * @param {*} pagination
     */

  }, {
    key: "onTableChange",
    value: function onTableChange() {
      var pagination = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      var fieldsValue = getRefFieldsValue(this.oneSearchFormRef);
      var onSecGrpPageChange = this.props.onSecGrpPageChange;
      onSecGrpPageChange(pagination, fieldsValue);
    }
    /**
     * 设置Form
     * @param {object} ref - FilterForm组件引用
     */

  }, {
    key: "handleBindRef",
    value: function handleBindRef() {
      var ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      this.addModalRef = ref;
    }
    /**
     * 显示新增弹窗
     */

  }, {
    key: "handleShowAddModal",
    value: function handleShowAddModal() {
      this.fetchModalData();
      this.setState({
        addModalVisible: true
      });
    }
    /**
     * 隐藏新建弹窗
     */

  }, {
    key: "handleCloseModal",
    value: function handleCloseModal() {
      this.addModalRef.state.addRows = [];
      this.setState({
        addModalVisible: false
      });
    }
    /**
     * 查询弹窗数据
     * @param {Object} queryData - 查询数据
     */

  }, {
    key: "fetchModalData",
    value: function fetchModalData() {
      var queryData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      var _this$props$fetchAssi = this.props.fetchAssignableSecGrp,
          fetchAssignableSecGrp = _this$props$fetchAssi === void 0 ? function () {} : _this$props$fetchAssi;
      fetchAssignableSecGrp(queryData);
    }
    /**
     * 角色分配安全组
     * @param {array} addData - 选中的数据
     */

  }, {
    key: "handleAssignSecGrp",
    value: function handleAssignSecGrp(addData) {
      var _this$props$onAssignS = this.props.onAssignSecGrp,
          onAssignSecGrp = _this$props$onAssignS === void 0 ? function () {} : _this$props$onAssignS;
      onAssignSecGrp(addData, this.handleCloseModal);
    }
    /**
     * 获取选中行
     * @param {array} selectedRowKeys 选中行的key值集合
     * @param {object} selectedRows 选中行集合
     */

  }, {
    key: "handleRowSelectChange",
    value: function handleRowSelectChange(selectedRowKeys, selectedRows) {
      this.setState({
        selectedRowKeys: selectedRowKeys,
        selectedRows: selectedRows
      });
    }
    /**
     * 删除安全组
     */

  }, {
    key: "handleDeleteLine",
    value: function handleDeleteLine() {
      var _this$props = this.props,
          _this$props$onDelete = _this$props.onDelete,
          onDelete = _this$props$onDelete === void 0 ? function () {} : _this$props$onDelete,
          _this$props$deleteLoa = _this$props.deleteLoading,
          deleteLoading = _this$props$deleteLoa === void 0 ? false : _this$props$deleteLoa,
          secGrpAddModalPagination = _this$props.secGrpAddModalPagination;
      if (deleteLoading) return;
      var selectedRows = this.state.selectedRows;
      var that = this;
      Modal.confirm({
        title: intl.get('cpaas.common.message.confirm.remove').d('确定删除选中数据？'),
        onOk: function onOk() {
          onDelete(selectedRows).then(function (response) {
            if (response) {
              notification.success();
              that.setState({
                selectedRowKeys: [],
                selectedRows: {},
                currentSecGrp: {}
              }, function () {
                that.onTableChange(secGrpAddModalPagination);
              });
            }
          });
        }
      });
    }
    /**
     * 点击行
     * @param {object} record - 当前行数据
     */

  }, {
    key: "onRow",
    value: function onRow(record) {
      var _this2 = this;

      var _this$props$onResetPe = this.props.onResetPermissions,
          onResetPermissions = _this$props$onResetPe === void 0 ? function () {} : _this$props$onResetPe;
      var _this$state$currentSe = this.state.currentSecGrp,
          currentSecGrp = _this$state$currentSe === void 0 ? {} : _this$state$currentSe; // 重复点击同一行 不触发操作

      if (!_isEmpty(currentSecGrp) && currentSecGrp.secGrpId === record.secGrpId) return;
      onResetPermissions();
      this.setState(_objectSpread(_objectSpread({}, this.getInitialState()), {}, {
        currentSecGrp: record
      }), function () {
        _this2.handleChangePermissionType('visit');
      });
    }
    /**
     * 切换tab
     * @param {string} activeKey - 选中的tab
     */

  }, {
    key: "handleChangePermissionType",
    value: function handleChangePermissionType(activeKey) {
      this.setState({
        activeKey: activeKey
      });

      switch (activeKey) {
        case 'visit':
          this.fetchVisitPermission();
          break;

        case 'field':
          this.fetchFieldPermission();
          break;

        case 'workplace':
          this.fetchCardPermission();
          break;

        case 'dimension':
          this.fetchDataDimension();
          break;

        case 'data':
          this.fetchDataPermission();
          break;

        default:
          break;
      }
    }
    /**
     * 查询访问权限
     */

  }, {
    key: "fetchVisitPermission",
    value: function fetchVisitPermission() {
      var _this3 = this;

      var secGrpId = this.state.currentSecGrp.secGrpId;
      var _this$props$onFetchVi = this.props.onFetchVisitPermission,
          onFetchVisitPermission = _this$props$onFetchVi === void 0 ? function (e) {
        return e;
      } : _this$props$onFetchVi;
      onFetchVisitPermission(secGrpId).then(function (res) {
        if (res) {
          var _res$dataSource = res.dataSource,
              dataSource = _res$dataSource === void 0 ? [] : _res$dataSource,
              _res$defaultExpandedR = res.defaultExpandedRowKeys,
              defaultExpandedRowKeys = _res$defaultExpandedR === void 0 ? [] : _res$defaultExpandedR;

          _this3.setState({
            visitPermissionList: dataSource,
            defaultExpandedRowKeys: defaultExpandedRowKeys
          });
        }
      });
    }
    /**
     * 查询字段权限
     */

  }, {
    key: "fetchFieldPermission",
    value: function fetchFieldPermission() {
      var secGrpId = this.state.currentSecGrp.secGrpId;
      var _this$props$onFetchFi = this.props.onFetchFieldPermission,
          onFetchFieldPermission = _this$props$onFetchFi === void 0 ? function (e) {
        return e;
      } : _this$props$onFetchFi;
      onFetchFieldPermission(secGrpId);
    }
    /**
     * 查询字段权限配置
     * @param {number} permissionId - 接口id
     */

  }, {
    key: "fetchFieldConfigList",
    value: function fetchFieldConfigList(permissionId) {
      var _this$props$onFetchFi2 = this.props.onFetchFieldConfigList,
          onFetchFieldConfigList = _this$props$onFetchFi2 === void 0 ? function (e) {
        return e;
      } : _this$props$onFetchFi2;
      var secGrpId = this.state.currentSecGrp.secGrpId;
      return onFetchFieldConfigList({
        permissionId: permissionId,
        secGrpId: secGrpId
      });
    }
    /**
     * 查询工作台
     */

  }, {
    key: "fetchCardPermission",
    value: function fetchCardPermission() {
      var secGrpId = this.state.currentSecGrp.secGrpId;
      var _this$props$onFetchCa = this.props.onFetchCardPermission,
          onFetchCardPermission = _this$props$onFetchCa === void 0 ? function (e) {
        return e;
      } : _this$props$onFetchCa;
      onFetchCardPermission(secGrpId);
    }
    /**
     * 查询数据权限维度
     */

  }, {
    key: "fetchDataDimension",
    value: function fetchDataDimension() {
      var secGrpId = this.state.currentSecGrp.secGrpId;
      var _this$props$onFetchDa = this.props.onFetchDataDimension,
          onFetchDataDimension = _this$props$onFetchDa === void 0 ? function (e) {
        return e;
      } : _this$props$onFetchDa;
      onFetchDataDimension(secGrpId);
    }
    /**
     * 查询数据权限左侧tab
     */

  }, {
    key: "fetchDataPermission",
    value: function fetchDataPermission() {
      var secGrpId = this.state.currentSecGrp.secGrpId;
      var _this$props$onFetchDa2 = this.props.onFetchDataPermission,
          onFetchDataPermission = _this$props$onFetchDa2 === void 0 ? function (e) {
        return e;
      } : _this$props$onFetchDa2;
      onFetchDataPermission(secGrpId);
    }
    /**
     * 关闭侧滑
     */

  }, {
    key: "handleClose",
    value: function handleClose() {
      var _this$props$onCancel = this.props.onCancel,
          onCancel = _this$props$onCancel === void 0 ? function (e) {
        return e;
      } : _this$props$onCancel;
      onCancel(this.resetData);
    }
    /**
     * 清空数据
     */

  }, {
    key: "resetData",
    value: function resetData() {
      var initailState = this.getInitialState();
      this.setState(_objectSpread({}, initailState));
    }
    /**
     * 屏蔽/取消屏蔽安全组权限
     * @param {object} record - 屏蔽数据
     * @param {function} callBack - 查询回调
     */

  }, {
    key: "handleShield",
    value: function handleShield(record) {
      var callBack = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (e) {
        return e;
      };
      var _this$props2 = this.props,
          roleId = _this$props2.roleId,
          _this$props2$onShield = _this$props2.onShield,
          onShield = _this$props2$onShield === void 0 ? function (e) {
        return e;
      } : _this$props2$onShield;
      var secGrpId = this.state.currentSecGrp.secGrpId;

      var payload = _objectSpread(_objectSpread({}, record), {}, {
        roleId: roleId,
        secGrpId: secGrpId
      });

      if (record.authorityType === 'ACL') {
        onShield(payload, this.fetchVisitPermission);
      } else {
        onShield(payload, callBack);
      }
    }
    /**
     * 高亮显示选中行
     * @param {object} record - 行数据
     */

  }, {
    key: "addHighlight",
    value: function addHighlight(record) {
      var currentSecGrp = this.state.currentSecGrp;
      return record.secGrpId === currentSecGrp.secGrpId ? styles['auth-row-hover'] : '';
    }
  }, {
    key: "render",
    value: function render() {
      var _this4 = this;

      var _this$props3 = this.props,
          _this$props3$visible = _this$props3.visible,
          visible = _this$props3$visible === void 0 ? false : _this$props3$visible,
          roleId = _this$props3.roleId,
          path = _this$props3.path,
          tenantId = _this$props3.tenantId,
          queryLoading = _this$props3.queryLoading,
          queryModalLoading = _this$props3.queryModalLoading,
          saveModalLoading = _this$props3.saveModalLoading,
          deleteLoading = _this$props3.deleteLoading,
          secGrpList = _this$props3.secGrpList,
          secGrpPagination = _this$props3.secGrpPagination,
          secGrpAddModalList = _this$props3.secGrpAddModalList,
          secGrpAddModalPagination = _this$props3.secGrpAddModalPagination,
          _this$props3$onFetchV = _this$props3.onFetchVisitPermission,
          onFetchVisitPermission = _this$props3$onFetchV === void 0 ? function (e) {
        return e;
      } : _this$props3$onFetchV,
          queryVisitPermissionLoading = _this$props3.queryVisitPermissionLoading,
          queryFieldPermissionLoading = _this$props3.queryFieldPermissionLoading,
          secGrpFieldPermissionList = _this$props3.secGrpFieldPermissionList,
          secGrpFieldPermissionPagination = _this$props3.secGrpFieldPermissionPagination,
          queryFieldConfigLoading = _this$props3.queryFieldConfigLoading,
          secGrpCardList = _this$props3.secGrpCardList,
          secGrpCardPagination = _this$props3.secGrpCardPagination,
          queryCardLoading = _this$props3.queryCardLoading,
          secGrpDimensionList = _this$props3.secGrpDimensionList,
          secGrpDimensionPagination = _this$props3.secGrpDimensionPagination,
          _this$props3$secGrpDa = _this$props3.secGrpDataPermissionTabList,
          secGrpDataPermissionTabList = _this$props3$secGrpDa === void 0 ? [] : _this$props3$secGrpDa,
          queryDataDimensionLoading = _this$props3.queryDataDimensionLoading,
          queryDataPermissionTabLoading = _this$props3.queryDataPermissionTabLoading,
          shieldLoading = _this$props3.shieldLoading;
      var _this$state = this.state,
          addModalVisible = _this$state.addModalVisible,
          selectedRowKeys = _this$state.selectedRowKeys,
          currentSecGrp = _this$state.currentSecGrp,
          activeKey = _this$state.activeKey,
          visitPermissionList = _this$state.visitPermissionList,
          defaultExpandedRowKeys = _this$state.defaultExpandedRowKeys;
      var searchFormProps = {
        onSearch: this.handleSearch,
        wrappedComponentRef: this.oneSearchFormRef
      };
      var commonColumns = [{
        title: intl.get('ciam.roleManagement.model.roleManagement.secGrpName').d('安全组名称'),
        dataIndex: 'secGrpName'
      }, {
        title: intl.get('ciam.roleManagement.model.roleManagement.secGrpCode').d('安全组代码'),
        dataIndex: 'secGrpCode',
        width: '30%'
      }];
      var addModalOptions = {
        columns: [].concat(commonColumns, [{
          title: intl.get('ciam.roleManagement.model.roleManagement.secGrpSource').d('安全组来源'),
          dataIndex: 'createRoleName',
          width: '30%'
        }]),
        confirmLoading: saveModalLoading,
        loading: queryModalLoading,
        title: intl.get('ciam.roleManagement.view.title.secGrp.choose').d('选择安全组'),
        rowKey: 'secGrpId',
        queryName: 'secGrpName',
        queryCode: 'secGrpCode',
        queryNameDesc: intl.get('ciam.roleManagement.model.roleManagement.secGrpName').d('安全组名称'),
        queryCodeDesc: intl.get('ciam.roleManagement.model.roleManagement.secGrpCode').d('安全组代码'),
        dataSource: secGrpAddModalList,
        pagination: secGrpAddModalPagination,
        modalVisible: addModalVisible,
        addData: this.handleAssignSecGrp,
        onHideAddModal: this.handleCloseModal,
        fetchModalData: this.fetchModalData,
        onRef: this.handleBindRef
      };
      var rowSelection = {
        selectedRowKeys: selectedRowKeys,
        onChange: this.handleRowSelectChange
      };
      var tableProps = {
        loading: queryLoading,
        dataSource: secGrpList,
        columns: [].concat(commonColumns, [{
          title: intl.get('ciam.roleManagement.model.roleManagement.secGrpSource').d('安全组来源'),
          dataIndex: 'createRoleName',
          width: '30%'
        }]),
        rowKey: 'secGrpId',
        bordered: true,
        pagination: secGrpPagination,
        rowSelection: rowSelection,
        onChange: this.onTableChange,
        rowClassName: this.addHighlight,
        onRow: function onRow(record) {
          return {
            onClick: function onClick() {
              return _this4.onRow(record);
            }
          };
        }
      };
      var visitPermissionProps = {
        path: path,
        fetchVisitPermission: onFetchVisitPermission,
        currentSecGrp: currentSecGrp,
        dataSource: visitPermissionList,
        defaultExpandedRowKeys: defaultExpandedRowKeys,
        loading: queryVisitPermissionLoading,
        shieldLoading: shieldLoading,
        onShield: this.handleShield
      };
      var fieldPermissionProps = {
        dataSource: secGrpFieldPermissionList,
        pagination: secGrpFieldPermissionPagination,
        loading: queryFieldPermissionLoading,
        onFetchFieldConfigList: this.fetchFieldConfigList,
        queryFieldConfigLoading: queryFieldConfigLoading
      };
      var cardProps = {
        loading: queryCardLoading,
        dataSource: secGrpCardList,
        pagination: secGrpCardPagination
      };
      var dimensionProps = {
        loading: queryDataDimensionLoading,
        dataSource: secGrpDimensionList,
        pagination: secGrpDimensionPagination
      };
      var dataPermissionProps = {
        allTabList: secGrpDataPermissionTabList,
        roleId: roleId,
        tenantId: tenantId,
        path: path,
        secGrpId: currentSecGrp.secGrpId,
        onShield: this.handleShield,
        shieldLoading: shieldLoading,
        queryDataPermissionTabLoading: queryDataPermissionTabLoading
      };
      return /*#__PURE__*/React.createElement(Modal, {
        width: 1200,
        wrapClassName: "ant-modal-sidebar-right",
        transitionName: "move-right",
        destroyOnClose: true,
        visible: visible,
        title: intl.get('ciam.roleManagement.view.button.secGrp').d('分配安全组'),
        onCancel: this.handleClose,
        footer: /*#__PURE__*/React.createElement(Button, {
          type: "primary",
          onClick: this.handleClose
        }, intl.get('cpaas.common.button.close').d('关闭'))
      }, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
        span: 8
      }, /*#__PURE__*/React.createElement(SearchForm, searchFormProps), /*#__PURE__*/React.createElement(Row, Object.assign({}, SEARCH_FORM_ROW_LAYOUT, {
        style: {
          marginTop: '14px',
          marginBottom: '8px'
        }
      }), /*#__PURE__*/React.createElement(Col, {
        span: 12,
        offset: 14
      }, /*#__PURE__*/React.createElement(Button, {
        onClick: this.handleDeleteLine,
        style: {
          marginRight: 8
        },
        loading: deleteLoading,
        disabled: _isEmpty(rowSelection.selectedRowKeys)
      }, intl.get('cpaas.common.button.delete').d('删除')), /*#__PURE__*/React.createElement(Button, {
        onClick: this.handleShowAddModal
      }, intl.get('cpaas.common.button.add').d('新增')))), /*#__PURE__*/React.createElement(Table, tableProps)), /*#__PURE__*/React.createElement(Col, {
        span: 16,
        style: {
          marginTop: '87px',
          paddingLeft: '24px'
        }
      }, /*#__PURE__*/React.createElement("div", {
        className: styles['secGrp-detail-container']
      }, /*#__PURE__*/React.createElement("div", {
        className: styles['secGrp-detail-container-title']
      }, intl.get('ciam.roleManagement.view.title.secGrp.detail').d('安全组权限详情')), !_isEmpty(currentSecGrp) && /*#__PURE__*/React.createElement(Tabs, {
        tabBarGutter: 10,
        defaultActiveKey: "visit",
        animated: false,
        onChange: this.handleChangePermissionType,
        activeKey: activeKey
      }, /*#__PURE__*/React.createElement(TabPane, {
        tab: intl.get('ciam.securityGroup.view.title.tab.visit.permission').d('访问权限'),
        key: "visit"
      }, /*#__PURE__*/React.createElement(VisitPermissionTab, visitPermissionProps)), /*#__PURE__*/React.createElement(TabPane, {
        tab: intl.get('ciam.securityGroup.view.title.tab.field.permission').d('字段权限'),
        key: "field"
      }, /*#__PURE__*/React.createElement(FieldPermissionTab, fieldPermissionProps)), /*#__PURE__*/React.createElement(TabPane, {
        tab: intl.get('ciam.securityGroup.view.title.tab.workplace').d('工作台配置'),
        key: "workplace"
      }, /*#__PURE__*/React.createElement(CardTab, cardProps)), /*#__PURE__*/React.createElement(TabPane, {
        tab: intl.get('ciam.securityGroup.view.title.tab.dimension').d('数据权限维度'),
        key: "dimension"
      }, /*#__PURE__*/React.createElement(DimensionTab, dimensionProps)), /*#__PURE__*/React.createElement(TabPane, {
        tab: intl.get('ciam.securityGroup.view.title.tab.data.permission').d('数据权限'),
        key: "data"
      }, /*#__PURE__*/React.createElement(DataPermissionTab, dataPermissionProps))), _isEmpty(currentSecGrp) && /*#__PURE__*/React.createElement("h3", {
        style: {
          color: 'gray',
          margin: '5% 0',
          textAlign: 'center'
        }
      }, intl.get('ciam.securityGroup.view.title.secGrp.empty').d('暂无数据'))))), /*#__PURE__*/React.createElement(AddDataModal, addModalOptions));
    }
  }]);

  return AssignSecGrp;
}(React.Component), (_applyDecoratedDescriptor(_class2.prototype, "handleSearch", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "handleSearch"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "onTableChange", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, "onTableChange"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleBindRef", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, "handleBindRef"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleShowAddModal", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, "handleShowAddModal"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleCloseModal", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "handleCloseModal"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fetchModalData", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, "fetchModalData"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleAssignSecGrp", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, "handleAssignSecGrp"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleRowSelectChange", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, "handleRowSelectChange"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleDeleteLine", [_dec10], Object.getOwnPropertyDescriptor(_class2.prototype, "handleDeleteLine"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "onRow", [_dec11], Object.getOwnPropertyDescriptor(_class2.prototype, "onRow"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleChangePermissionType", [_dec12], Object.getOwnPropertyDescriptor(_class2.prototype, "handleChangePermissionType"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fetchVisitPermission", [_dec13], Object.getOwnPropertyDescriptor(_class2.prototype, "fetchVisitPermission"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fetchFieldPermission", [_dec14], Object.getOwnPropertyDescriptor(_class2.prototype, "fetchFieldPermission"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fetchFieldConfigList", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, "fetchFieldConfigList"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fetchCardPermission", [_dec16], Object.getOwnPropertyDescriptor(_class2.prototype, "fetchCardPermission"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fetchDataDimension", [_dec17], Object.getOwnPropertyDescriptor(_class2.prototype, "fetchDataDimension"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fetchDataPermission", [_dec18], Object.getOwnPropertyDescriptor(_class2.prototype, "fetchDataPermission"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleClose", [_dec19], Object.getOwnPropertyDescriptor(_class2.prototype, "handleClose"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "resetData", [_dec20], Object.getOwnPropertyDescriptor(_class2.prototype, "resetData"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleShield", [_dec21], Object.getOwnPropertyDescriptor(_class2.prototype, "handleShield"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "addHighlight", [_dec22], Object.getOwnPropertyDescriptor(_class2.prototype, "addHighlight"), _class2.prototype)), _class2)) || _class);
export { AssignSecGrp as default };